import {
    fetchData
} from '@/utils';


// 请求登录数据
export async function loginFetch(params) {
    return await fetchData('/passport/login', 'post', params);
}

// 注册数据
export async function registeredFetch(params) {
    return await fetchData('/passport/logon', 'post', params);
}

// 获取验证码
export async function getCode(params) {
    return await fetchData('/passport/getCode', 'post', params);
}